import React,{useState,useEffect} from 'react';
// ui
import ReactECharts from 'echarts-for-react';

const Page: React.FC<any> = (props:any,ref:any) => {
    const [chartOption,setChartOption] =useState({
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                data: [120, 200, 150, 80, 70, 110, 130],
                type: 'bar'
            }
        ]
    });

    useEffect(()=>{                
    },[])

    return (
        <>          
          <ReactECharts style={{height:'100%'}} option={chartOption} />                
        </>                
    );
}

export default Page;